Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unspecific and unstable logic on control mouse down #5851

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mdo2
Copy link

@mdo2 mdo2 commented Jan 22, 2024

Use internal member to check if control onMouseDown should act and remove logic to bail out from an event if someone else listening to the event (usually in a capture phase) has called preventDefault().

This fixes interop between react-select and react-beautiful-dnd.

This is intended to be a temporal fix, as a better solution must be developed.

Closes #5833, #5176

Another PR about this: #5842

This is intended to be a temporal fix, as I think a better solution must be developed.

Referenced issues: JedWatson#5833, JedWatson#5176

Another PRs abaout this: JedWatson#5842
Copy link

changeset-bot bot commented Jan 22, 2024

🦋 Changeset detected

Latest commit: 3cde18e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-select Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Jan 22, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3cde18e:

Sandbox Source
react-codesandboxer-example Configuration

@mdo2
Copy link
Author

mdo2 commented Jan 23, 2024

@lukebennett88, @emmatown, sorry for bothering you, but can you review this small fix?

This issue is blocking my team and many others. Also, there exist two issues, at least complaining about this behavior.

I appreciate any help you can provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select behaves inconsistently when receiving a mousedown event with defaultPrevented
1 participant